<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FrankMocap 网页应用</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <header>
        <div class="container">
            <h1>FrankMocap 网页应用</h1>
            <p>实时动作捕捉系统</p>
        </div>
    </header>

    <div class="container">
        <div class="main-content">
            <div class="control-panel">
                <div class="option-group">
                    <div class="option-title">选择捕捉模式</div>
                    <div class="radio-group">
                        <label class="radio-option">
                            <input type="radio" name="mode" value="frank" checked> 完整捕捉 (身体+手部)
                        </label>
                        <label class="radio-option">
                            <input type="radio" name="mode" value="body"> 仅身体捕捉
                        </label>
                        <label class="radio-option">
                            <input type="radio" name="mode" value="hand"> 仅手部捕捉
                        </label>
                    </div>
                </div>

                <div class="option-group">
                    <div class="option-title">渲染设置</div>
                    <div class="radio-group">
                        <label class="radio-option">
                            <input type="checkbox" id="showSkeleton" checked> 显示骨骼
                        </label>
                        <label class="radio-option">
                            <input type="checkbox" id="showMesh" checked> 显示网格
                        </label>
                    </div>
                </div>

                <div class="option-group">
                    <button id="startButton">开始捕捉</button>
                    <button id="stopButton" disabled>停止</button>
                    <button id="cameraButton" onclick="window.location.href='/camera'">打开摄像头模式</button>
                </div>
                <div class="status" id="statusMessage">准备就绪</div>
            </div>

            <div class="display-panel">
                <div class="canvas-stack">
                    
                    <canvas id="originalCanvas"></canvas>
                    <canvas id="resultCanvas"></canvas>
                    <div class="fps-display" id="fpsCounter">FPS: 0</div>
                </div>
            </div>
            <div class="canvas-stack">
                <video id="video" style="display: none;" autoplay playsinline></video>
                <canvas id="originalCanvas"></canvas>
                <canvas id="resultCanvas"></canvas>
                <div class="fps-display" id="fpsCounter">FPS: 0</div>
            </div>
        </div>
    </div>

    <script src="/static/js/app.js"></script>
</body>
</html>